import * as bm from "/js/baseModule.js";

export class Module extends bm.baseModule {
    constructor(view) {
        super(view);

    }
    afterInstall(){
        // 移除点击黑色背景关闭弹窗的事件
        this.config.parent.off('click');
        let content = this.config.parent.find('.CenterModalContent');
        // 移除关闭按钮
        content.find('.icon-cross').hide();
        let height = content.height();
        content.css('margin-top', -height / 2 + 'px');
        setTimeout(function () {
            content.css({'transform': 'scale(1,1)', 'opacity': '1'});
        }, 100);
    }
}
